package it.uniroma2.structure;

import java.util.Vector;

public class VariableVector extends Vector<Variable>{
	/**
	 * @uml.property  name="variableVectorTag"
	 */
	private final String variableVectorTag = "bpel:variables";

	public String toBPEL(){
		String output = "";

		if(this.size() > 0){
			output = "<" + this.variableVectorTag + ">\n";
			Variable var;
			for(int i = 0; i < this.size(); i++){
				var = this.elementAt(i);
				output = output + var.toBPEL();
			}
			output = output + "</" + this.variableVectorTag + ">\n";
		}
			
		return output;
	}
	

}
